package cn.kgc.crowdfundingadmin02.service;

import cn.kgc.crowdfundingadmin02.pojo.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author shkstart
 * @create 2020-02-20 8:57
 */
public interface AdminService {
    Admin selectByPrimaryKey(Integer id);

    /*管理员登陆  判断是否登陆成功*/
    public Admin login(String loginAcct, String userPswd);


    //分页查询
    PageInfo<Admin> queryForKeywordSearch(Integer pageNum, Integer pageSize, String keyword);

    //根据id删除 给adminIdList赋值为id
    public void batchRemove(List<Integer> adminIdList);
    //增加
    public void saveAdmin(Admin admin);
//根据id查询  修改前
    public Admin getAdminById(Integer adminId);
    //修改
    public void updateAdmin(Admin admin);
}
